package data_structures;

public class TestHeap {
	public static void main(String[] args) {
		Heap heap = new Heap(new Integer[]{8, 9, 2, 3, 4, 1, 5, 6, 7});
	
		while (heap.getSize() > 0)
			System.out.print(heap.remove() + " ");
	}
}



